package models;

import java.io.File;

import javax.persistence.Entity;
import javax.persistence.Table;

import play.db.jpa.Model;


@Entity
@Table(name="shop_user")
public class User extends Model {
	
	public String eMail;
	public String name;
	public String firstName;
	public String password;
	public String isAdmin;
	
	public User(String eMail, String name, String firstName, String password) {
        this.eMail = eMail;
        this.name = name;
        this.firstName = firstName;
        this.password = password;
    }
	
	public String getHomeFolder() {
		return "home" + File.separator + getId() + File.separator + "images" + File.separator;
	}

}
